import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import ChooseLocation from '../views/ChooseLocation'
import Mine from '../views/Mine'
import Login from '../views/Login'
import SignIn from '../views/SignIn'
import CategroyPage from '../views/CategroyPage'
import DetailPage from '../views/DetailPage'
import Follow from '../views/Follow'
import Car from '../views/Car'
import Buy from '../views/Buy'
import Address from '../views/Address'
import Advs from '../views/Advs'
import Buyer from '../views/Buyer'
import Realname from '../views/Realname'
import Coupon from '../views/Coupon'
import Password from '../views/Password'
import ceshi from '../views/ceshi'


Vue.use(VueRouter)

const routes = [
  {
    path:'/ceshi',
    component:ceshi
  },
  {
    path:'/password',
    component:Password
  },
  {
    path:'/coupon',
    component:Coupon
  },
  {
    path:'/buyer',
    component:Buyer
  },
  {
    path:'/real',
    component:Realname
  },
  {
    path:'/advs',
    component:Advs
  },
  {
    path: '/address',
    component: Address
  },
  {
    path: '/buy',
    component: Buy
  },
  {
    path: '/car',
    component: Car
  },
  {
    path: '/follow',
    component: Follow
  },
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/location',
    component: ChooseLocation,
  },
  {
    path: '/user',
    component: Mine
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/signIn',
    component: SignIn
  },
  {
    path: '/category',
    component: CategroyPage
  },
  {
    path: '/detail',
    component: DetailPage
  }
]

const router = new VueRouter({
  routes
})

export default router
